package com.shen.pojo.QQ;

/**
 * Author:shen
 * CreateDate:2020/5/5.
 * Function:
 */
public class QQUser {
    private int id;//用户id
    private String name;//用户名
    private String number;//用户号码
    private int onlineTime;//在线时长
    private Level level;//等级

    public QQUser() {
    }

    public QQUser(int id, String name, String number, int onlineTime) {
        this.level=new Level();
        this.level.getUp(onlineTime);

        this.id = id;
        this.name = name;
        this.number = number;
        this.onlineTime = onlineTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(int onlineTime) {
        this.onlineTime = onlineTime;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "QQUser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", onlineTime=" + onlineTime +
                ", level=" + level.toString()+
                '}';
    }
}
